package dipl.algorithm.utility.data.comparator;

/**
 * Represents comparator for integer values.
 * @author Marko Walther
 */
public class IntComparator implements IComparator<Integer> {

	//
	// CONSTRUCTOR METHODS
	//

	/**
	 * Constructs a comparator for type integer values.
	 */
	public IntComparator() {
	}

	//
	// PUBLIC METHODS
	//
	
	public int compare( Integer a, Integer b ) {
		if( a < b ) return -1;
		if( a > b ) return 1;
		return 0;
	}
}